Sébastien Wilmet [Fri, 11 Apr 2014 11:41:50 +0000 (13:41 +0200)]
textiter: small optimization for find_by_log_attrs()
Use gtk_text_iter_set_line_offset (&tmp_iter, 0) instead of
gtk_text_iter_get_line(). The difference should not be big. In the first
case the line doesn't need to be traversed thanks to the offset 0. For
get_line(), the btree must be traversed.
A temporary iter is needed to not break the behavior. But the behavior
is quite strange, the function works directly on the iter passed as an
argument to the function, even if the function returns FALSE (not
found). So maybe a later commit will fix this strange behavior.
https://bugzilla.gnome.org/show_bug.cgi?id=629129
Sébastien Wilmet [Thu, 10 Apr 2014 21:53:41 +0000 (23:53 +0200)]
textiter: remove recursivity of find_by_log_attrs()
find_by_log_attrs() was a recursive function. It is replaced by an
iteration.
The already_moved_initially parameter was TRUE only for the recursive
call, so the paramater is removed.
There is also a small cleanup of the find_visible_by_log_attrs()
(remove trailing spaces, fix indentation).
There is still a part to optimize for a later commit.
https://bugzilla.gnome.org/show_bug.cgi?id=629129
Matthias Clasen [Sun, 13 Jul 2014 13:56:06 +0000 (09:56 -0400)]
GtkDialog: Set window titles in header bars
This is fallout from the recent dialog changes. We don't set the
headerbar as titlebar early enough anymore, so when the window title
gets set, it does not get passed on to the headerbar. So, re-set it
manually when the titlebar is put in place.
https://bugzilla.gnome.org/show_bug.cgi?id=733099
Paolo Borelli [Sun, 13 Jul 2014 13:45:21 +0000 (15:45 +0200)]
list-box: fix typo in natural size computation
Matthias Clasen [Sun, 13 Jul 2014 13:01:11 +0000 (09:01 -0400)]
Adwaita: Some theming for activatable list rows
Matthias Clasen [Sun, 13 Jul 2014 01:04:54 +0000 (21:04 -0400)]
widget-factory: Use the new ::activatable property
Matthias Clasen [Sun, 13 Jul 2014 00:37:41 +0000 (20:37 -0400)]
GtkListBox: Add an activatable property for rows
This will let us theme activatable rows differently.
We also avoid emitting the ::row-activated signal for
rows that are not activatable. For compatibility reasons,
rows are activatable by default.
https://bugzilla.gnome.org/show_bug.cgi?id=733112
Matthias Clasen [Sat, 12 Jul 2014 23:48:06 +0000 (19:48 -0400)]
widget-factory: Improve listbox example spacing
Matthias Clasen [Sat, 12 Jul 2014 21:30:25 +0000 (17:30 -0400)]
widget-factory: Fix the row activation example
Turns out ::activate on listbox rows is only for key bindings,
so use ::row-activated.
Matthias Clasen [Sat, 12 Jul 2014 18:46:00 +0000 (14:46 -0400)]
Trivial typo fix
Matthias Clasen [Sat, 12 Jul 2014 18:45:16 +0000 (14:45 -0400)]
widget-factory: Demonstrate listbox headers
Add a less trivial examples of headers in the colors listbox.
Matthias Clasen [Sat, 12 Jul 2014 16:54:21 +0000 (12:54 -0400)]
widget-factory: Add some row activation to the listbox example
This shows some fallout from the gesture conversion.
Piotr Drąg [Sat, 12 Jul 2014 13:15:44 +0000 (15:15 +0200)]
Updated POTFILES.skip
Stefano Facchini [Sat, 12 Jul 2014 09:35:42 +0000 (11:35 +0200)]
widget-factory: Do no crash on variadic arguments
Matthias Clasen [Sat, 12 Jul 2014 07:31:29 +0000 (03:31 -0400)]
widget-factory: Add another listbox example
This one is long enough to scroll, and has selection.
Matthias Clasen [Sat, 12 Jul 2014 05:56:55 +0000 (01:56 -0400)]
Fix the build
gtkx.h can no longer be included internally, so skip it when
generating the gir. We include the individual headers anyway.
Matthias Clasen [Sat, 12 Jul 2014 05:43:03 +0000 (01:43 -0400)]
inspector: Reshuffle Visual and General tabs
Move the touchscreen switch to the other debug switches, and
move the hidpi spin to the other graphical controls. Since the
Visual tab is getting large, make it scroll. The General tab
is purely informational again.
Benjamin Otte [Sat, 12 Jul 2014 05:16:33 +0000 (07:16 +0200)]
GtkStack: Render a background
https://bugzilla.gnome.org/show_bug.cgi?id=733027
Benjamin Otte [Sat, 12 Jul 2014 05:12:49 +0000 (07:12 +0200)]
gtk-demo: This is not a unique app
When running gtk-demo a 2nd time, it's usually to compare its
output with a different version of gtk-demo.
Benjamin Otte [Sat, 12 Jul 2014 05:11:30 +0000 (07:11 +0200)]
widget-factory: This is not a unique app
When running widget-factory a 2nd time, it's usually to compare its
output with a different version of widget-factory.
Benjamin Otte [Sat, 12 Jul 2014 03:33:33 +0000 (05:33 +0200)]
reftests: Add test for latest fix
Ensure we draw the full backgorund on labels, not just where test
appears.
Benjamin Otte [Sat, 12 Jul 2014 03:32:12 +0000 (05:32 +0200)]
label: Include all of the allocation in the clip
Otherwise, the CSS background we draw would be clipped if the ink rect
was smaller than the allocation (a very common thing).
Broken since
37030a771059f43ad701700380719d19cbc7c966 where we clipped
to the ink rect.
Benjamin Otte [Sat, 12 Jul 2014 03:29:54 +0000 (05:29 +0200)]
gtkx: Warn if we include gtkx.h during GTK compilation
Benjamin Otte [Sat, 12 Jul 2014 03:27:49 +0000 (05:27 +0200)]
a11y: Do not include gtkx.h directly
Benjamin Otte [Sat, 12 Jul 2014 02:46:20 +0000 (04:46 +0200)]
socket: Don't include gtk.h
And fix remaining headers to not emit warnings
Matthias Clasen [Sat, 12 Jul 2014 04:33:19 +0000 (00:33 -0400)]
Revert "GtkStack: Render background and chain up gtk_widget_draw ()."
This reverts commit
f6695b962ff6462cfc8250f949505a17d0d9df6d.
Matthias Clasen [Sat, 12 Jul 2014 04:17:43 +0000 (00:17 -0400)]
inspector: Reshuffle visual tab
Matthias Clasen [Sat, 12 Jul 2014 04:10:59 +0000 (00:10 -0400)]
inspector: Reorder tabs
Move Resources next to Objects, and Visual next to General.
Matthias Clasen [Sat, 12 Jul 2014 03:45:18 +0000 (23:45 -0400)]
inspector: Fix the build
I forgot to test the previous commit with -Wimplicit-function-delcaration,
and it promptly broke.
Matthias Clasen [Sat, 12 Jul 2014 03:14:04 +0000 (23:14 -0400)]
inspector: Clean up includes
Don't include gtk.h, instead include individual headers.
And include config.h and gi18n-lib.h everywhere.
Matthias Clasen [Sat, 12 Jul 2014 02:29:58 +0000 (22:29 -0400)]
inspector: Don't mark environment variables for translations
These names don't change with the locale, after all.
Matthias Clasen [Sat, 12 Jul 2014 02:23:07 +0000 (22:23 -0400)]
widget-factory: Add a selectable label
We already have selectable labels in some of the dialogs,
but this is more direct, and also shows links in labels.
Timm Bäder [Wed, 9 Jul 2014 22:25:49 +0000 (00:25 +0200)]
gtklabel: Set the correct initial cursor
Use GDK_XTERM only if the label is really selectable.
https://bugzilla.gnome.org/show_bug.cgi?id=732970
Matthias Clasen [Sat, 12 Jul 2014 01:15:03 +0000 (21:15 -0400)]
widget-factory: Adapt to label clipping change
The paned examples on page 2 were implicitly relying on labels
drawing unclipped. Instead of setting the view class only on the
labels, set it on the paned's instead.
William Hua [Thu, 10 Jul 2014 14:39:48 +0000 (10:39 -0400)]
GtkStack: Render background and chain up gtk_widget_draw ().
https://bugzilla.gnome.org/show_bug.cgi?id=733027
Matthias Clasen [Fri, 11 Jul 2014 22:09:47 +0000 (18:09 -0400)]
Document that the drag icon window will be modified
This is in response to the complaint in
https://bugzilla.gnome.org/show_bug.cgi?id=732991
Руслан Ижбулатов [Fri, 23 Aug 2013 14:15:29 +0000 (14:15 +0000)]
Correctly generate def files again
Ignacio Casal Quinteiro [Fri, 11 Jul 2014 16:20:53 +0000 (18:20 +0200)]
Revert "win32: Drop remnants of def files"
This reverts commit
d76785a993aa71f880d5805d1c010d4d12000bc1.
Matthias Clasen [Fri, 11 Jul 2014 14:27:00 +0000 (10:27 -0400)]
inspector: Add comments
The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.
GunChleoc [Fri, 11 Jul 2014 10:55:19 +0000 (10:55 +0000)]
Updated Scottish Gaelic translation
GunChleoc [Fri, 11 Jul 2014 10:51:53 +0000 (10:51 +0000)]
Updated Scottish Gaelic translation
Yosef Or Boczko [Fri, 11 Jul 2014 09:00:04 +0000 (12:00 +0300)]
Updated Hebrew translation
Matthias Clasen [Fri, 11 Jul 2014 04:48:51 +0000 (00:48 -0400)]
inspector: Show settings bindings
Similar to the previous commit, show settings bindings for
properties in the property editor.
Matthias Clasen [Fri, 11 Jul 2014 03:57:37 +0000 (23:57 -0400)]
inspector: Show property bindings
This commit add information about existing bindings to the
property editor.
Matthias Clasen [Thu, 10 Jul 2014 23:36:26 +0000 (19:36 -0400)]
Adwaita: Set background color of header buttons
Without a background, one can see titles shine through when
resizable columns are squeezed.
Matthias Clasen [Thu, 10 Jul 2014 22:36:16 +0000 (18:36 -0400)]
inspector: Allow setting hidpi scale
Matthias Clasen [Thu, 10 Jul 2014 22:35:54 +0000 (18:35 -0400)]
Cosmetic formatting fixes
Matthias Clasen [Thu, 10 Jul 2014 21:37:26 +0000 (17:37 -0400)]
inspector: Show GSETTINGS_SCHEMA_DIR when set
Matthias Clasen [Thu, 10 Jul 2014 19:20:01 +0000 (15:20 -0400)]
GtkTreeViewColumn: a better way to avoid overlap
The overlap was caused by using pack-end for the arrow, which
causes it to be allocated from the other end. Avoid the problem
by using pack-start for both the title and the arrow, and
reordering them according to xalign.
Piotr Drąg [Thu, 10 Jul 2014 18:49:37 +0000 (20:49 +0200)]
Updated POTFILES.in and POTFILES.skip
Carlos Garnacho [Thu, 10 Jul 2014 14:55:00 +0000 (16:55 +0200)]
Adwaita: Add comment around the .overshoot style class
And document the oddities around it, as requested by Lapo
Carlos Garnacho [Wed, 9 Jul 2014 14:21:41 +0000 (16:21 +0200)]
treeview: remove needless duplicate gtk_widget_set_parent_window() call
This same call happens a few lines above.
Matthias Clasen [Thu, 10 Jul 2014 18:13:35 +0000 (14:13 -0400)]
GtkTreeView: Avoid overlapping sort indicator
Hide the sort indicator when it would overlap the column title.
Benjamin Otte [Thu, 10 Jul 2014 16:55:37 +0000 (18:55 +0200)]
reftests: Add test for the recent label changes
Benjamin Otte [Thu, 10 Jul 2014 16:31:58 +0000 (18:31 +0200)]
widget: Remove special case for clipping
Labels now call gtk_widget_set_clip() so there is no longer a need to
exclude them from clipping.
Benjamin Otte [Thu, 10 Jul 2014 16:31:15 +0000 (18:31 +0200)]
label: Add ink rect support to GtkLabel
Benjamin Otte [Thu, 10 Jul 2014 16:30:21 +0000 (18:30 +0200)]
label: Move function
This just moves the function, no actual code changes.
Benjamin Otte [Thu, 10 Jul 2014 12:23:54 +0000 (14:23 +0200)]
tests: Add deprecation guards
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
Benjamin Otte [Thu, 10 Jul 2014 12:16:06 +0000 (14:16 +0200)]
reftests: Improve workaround for GtkGrid bug
... so that it works with wide separators. Or rather: with separators
that don't request 1px size but any other number. Do that by making the
placeholder request the same size by indeed stuffing (hidden) separators
in it.
Javier Jardón [Thu, 10 Jul 2014 15:52:44 +0000 (16:52 +0100)]
docs: Change documentation to consistenly use "Returns:"
Instead "Return value:" or "Return:"
Matthias Clasen [Thu, 10 Jul 2014 14:33:27 +0000 (10:33 -0400)]
inspector: Disable non-functional controls
Some of the features we expose can be hardcoded via environment
variables. In that case, don't confuse the user by letting them
change settings that have no effect.
Matthias Clasen [Thu, 10 Jul 2014 14:11:10 +0000 (10:11 -0400)]
inspector: Add a switch for simulating touch
This makes it easy to test test touchscreen features with a
plain old mouse.
Matthias Clasen [Thu, 10 Jul 2014 14:10:11 +0000 (10:10 -0400)]
Add a 'touchscreen' debug flag
This has the same effect as the GTK_TEST_TOUCHSCREEN environment
variable, but can be toggled at runtime.
Lapo Calamandrei [Thu, 10 Jul 2014 13:47:57 +0000 (15:47 +0200)]
Adwaita: treeview progressbar fix
Lapo Calamandrei [Thu, 10 Jul 2014 12:59:08 +0000 (14:59 +0200)]
Adwaita: saner treeview lines style plus treeview expander style
Lapo Calamandrei [Thu, 10 Jul 2014 11:53:37 +0000 (13:53 +0200)]
Adwaita: initial and hopefully temporary treeview separation lines style
Matthias Clasen [Thu, 10 Jul 2014 11:15:33 +0000 (07:15 -0400)]
widget-factory: Enable even/odd rows
More treeview testing.
Matthias Clasen [Thu, 10 Jul 2014 10:31:45 +0000 (06:31 -0400)]
widget-factory: More treeview examples
The new treeview on page 3 sports expanders, grid and tree lines,
alternating row colors, etc.
Lapo Calamandrei [Thu, 10 Jul 2014 10:22:41 +0000 (12:22 +0200)]
Adwaita: drawing functions housekeeping
Lapo Calamandrei [Thu, 10 Jul 2014 09:55:51 +0000 (11:55 +0200)]
Adwaita: simplify buttons drawing function
Matthias Clasen [Thu, 10 Jul 2014 04:16:04 +0000 (00:16 -0400)]
Docs: Mention that shadow type is a lie
As requested here:
https://bugzilla.gnome.org/show_bug.cgi?id=659926#c2
Carlos Garnacho [Mon, 30 Jun 2014 18:46:59 +0000 (20:46 +0200)]
Adwaita: Set a background color for the overshoot class
https://bugzilla.gnome.org/show_bug.cgi?id=731297
Carlos Garnacho [Wed, 28 May 2014 17:17:02 +0000 (19:17 +0200)]
scrolledwindow: Remove overshoot window and displacement animation
The displacement animation has been replaced by edge gradients, that
have a stronger color the harder overshooting is hit. This makes it
possible to remove the internal overshoot window, which was merely
used to have contents displaced when overshooting to top/left.
Overshooting to bottom/right used to cause queue_resize() to be
called on the scrolled window, this isn't necessary anymore either.
https://bugzilla.gnome.org/show_bug.cgi?id=731297
Carlos Garnacho [Mon, 30 Jun 2014 18:45:32 +0000 (20:45 +0200)]
stylecontext: Add GTK_STYLE_CLASS_OVERSHOOT
This class is meant to render the hint on scrolledwindow corners
when scrolling past-limits.
https://bugzilla.gnome.org/show_bug.cgi?id=731297
Carlos Garnacho [Tue, 8 Jul 2014 14:06:00 +0000 (16:06 +0200)]
textview: Call gtk_widget_size_allocate() on children widgets invariably
There was this hack, taken verbatim from GtkCList according to the comment,
that would recursively translate the allocation during scrolling, and set
it on children widgets through the direct gtk_widget_set_allocation() setter.
Since commit
4f89eb05cf8a, this has caused the wrong clipping areas to children
widgets of a textview. The reasons for this seem lost in time, and the approach
seems indeed wrong for windowed widgets as the repositioning of those windows
couldn't happen.
So replace all of this with just a gtk_widget_size_allocate() call, which does
work ok for the children widgets embedded in the "multiple views" gtk demo, and
ought to work for every other widget.
https://bugzilla.gnome.org/show_bug.cgi?id=732900
Carlos Garnacho [Wed, 9 Jul 2014 14:20:01 +0000 (16:20 +0200)]
treeview: Add back the Gdk pointer grab during column dragging
The reparenting happening on the column header so it gets a movable
window breaks the implicit grab, so this is one situation were we
want a pointer grab, if just to replace it.
https://bugzilla.gnome.org/show_bug.cgi?id=732933
Carlos Garnacho [Wed, 9 Jul 2014 14:18:05 +0000 (16:18 +0200)]
treeview: Fix horizontal position during column dragging
Code was expecting view coordinates, not widget ones, as we're
only dealing with horizontal displacements, just adding the
horizontal adjustment value suffices.
https://bugzilla.gnome.org/show_bug.cgi?id=732933
Matthias Clasen [Thu, 10 Jul 2014 01:19:09 +0000 (21:19 -0400)]
Make Adwaita the default theme across platforms
This ensures that we have a polished out-of-the-box appearance
on all platforms.
Matthias Clasen [Thu, 10 Jul 2014 01:18:18 +0000 (21:18 -0400)]
Use a define for the default icon theme name
We're using this name in two places, so match what we are doing
for the default theme name, and use a macro.
Matthias Clasen [Thu, 10 Jul 2014 01:12:08 +0000 (21:12 -0400)]
GtkIconTheme: Rename a macro
We use DEFAULT_THEME_NAME in gtksettings.c as well, and this
can be a confusing when grepping, so rename this to
FALLBACK_ICON_THEME.
Matthias Clasen [Thu, 10 Jul 2014 01:08:18 +0000 (21:08 -0400)]
GtkColorButton: Some formatting cleanups
Matthias Clasen [Thu, 10 Jul 2014 00:50:47 +0000 (20:50 -0400)]
GtkColorButton: Use a color swatch
This saves some code and lets us reuse the color swatch styling.
Among other things, this fixes a lack of discernible border when
the selected color is very similar to the background.
https://bugzilla.gnome.org/show_bug.cgi?id=680885
Matthias Clasen [Thu, 10 Jul 2014 00:44:06 +0000 (20:44 -0400)]
GtkColorSwatch: Respect an explicitly set size
This will let us use a suitably sized color swatch in the color
button.
Matthias Clasen [Wed, 9 Jul 2014 23:52:55 +0000 (19:52 -0400)]
builder test: Adjust expections
Dialogs no longer set a headerbar as titlebar unless use-header-bar
is set to 1. Update the test to do that.
Matthias Clasen [Wed, 9 Jul 2014 23:46:16 +0000 (19:46 -0400)]
app chooser: Move buttons to template
Use the new builder dialog action support.
Matthias Clasen [Wed, 9 Jul 2014 23:43:20 +0000 (19:43 -0400)]
font chooser: Move buttons to template
Use the new builder dialog action support.
Matthias Clasen [Wed, 9 Jul 2014 23:38:29 +0000 (19:38 -0400)]
a11y: Update expected output for color chooser
Matthias Clasen [Wed, 9 Jul 2014 23:39:19 +0000 (19:39 -0400)]
color chooser: Move buttons to template
We can now use the new builder action support.
Matthias Clasen [Wed, 9 Jul 2014 23:40:11 +0000 (19:40 -0400)]
GtkDialog: Fix setting of default action
The recent reshuffling caused an ordering problem where we would
hide the action area before relocating the buttons to the header
bar. But hiding makes the default button loose its defaultness.
Rearrange things so that we move the buttons before hiding the
action area, and thus preserve the default.
Lapo Calamandrei [Wed, 9 Jul 2014 17:37:41 +0000 (19:37 +0200)]
Adwaita: vertically linked buttons
Matthias Clasen [Wed, 9 Jul 2014 17:18:41 +0000 (13:18 -0400)]
gtk-demo: Fix expand button box demo
Set the spacing to 0, so the buttons are actually linked.
Stefano Facchini [Tue, 8 Jul 2014 12:12:39 +0000 (14:12 +0200)]
icontheme: Use correct URI for icons in resource paths
Fix based on a patch by Stefano Faccini,
https://bugzilla.gnome.org/show_bug.cgi?id=732894
Matthias Clasen [Wed, 9 Jul 2014 14:13:38 +0000 (10:13 -0400)]
widget-factory: Use the new application resource support
Matthias Clasen [Wed, 9 Jul 2014 12:03:57 +0000 (08:03 -0400)]
Update more places for the changed icon name
Jakub Steiner [Wed, 9 Jul 2014 11:35:25 +0000 (13:35 +0200)]
widget-factory: the menu icon name changed
Adam Dingle [Wed, 9 Jul 2014 10:37:59 +0000 (06:37 -0400)]
Require GLib 2.41.2 (for g_application_get_resource_base_path)
Allan Day [Tue, 8 Jul 2014 09:19:47 +0000 (10:19 +0100)]
message dialogs - remove extraneous padding
Removes unnecessary padding above message dialog headings. This
makes the dialogs look much more balanced.
https://bugzilla.gnome.org/show_bug.cgi?id=732857
https://bugzilla.gnome.org/show_bug.cgi?id=732882
Carlos Garnacho [Tue, 8 Jul 2014 13:35:18 +0000 (15:35 +0200)]
range: Avoid animations during slider drag
If the drag gesture gets a GtkGesture::updated signal, the user
is directly interacting through pointer/touch with the range slider,
animating the adjustment value change in this situation can produce
perceived lag, so set the value immediately when this is happening.
Carlos Garnacho [Tue, 8 Jul 2014 13:27:06 +0000 (15:27 +0200)]
textview: Fix cursor positioning oddities when scrolling through Pg Up/Down
Use the adjustment target value when repositioning the cursor, and remove the
checks that ensured the cursor was made onscreen immediately, as there will
be definitely a delay on animated adjustment changes.
Carlos Garnacho [Tue, 8 Jul 2014 13:22:24 +0000 (15:22 +0200)]
textview: Use adjustment animations in gtk_text_view_scroll_to_iter()
This makes keyboard-triggered scrolling animated, as this function is
used underneath in order to make the cursor onscreen after it is
displaced.